.. _ocamediaclock: 1.2.6 OcaMediaClock ==================== Class Hierarchy: :ref:`OcaRoot ` :raw:html:`→` :ref:`OcaAgent ` :raw:html:`→` :ref:`OcaMediaClock ` .. cpp:class:: OcaMediaClock: OcaAgent **DEPRECATED CLASS** *Replaced by* **OcaMediaClock3** A media clock, internal or external. **Properties**: .. _ocamediaclock_classid: .. cpp:member:: static const OcaClassID ClassID = "1.2.6" This property is an override of the **OcaRoot** property. This property has id ``3.1``. .. _ocamediaclock_classversion: .. cpp:member:: static const OcaClassVersionNumber ClassVersion = 2 Identifies the interface version of the class. Any change to the class definition leads to a higher class version. This property is an override of the **OcaRoot** property. This property has id ``3.2``. .. _ocamediaclock_type: .. cpp:member:: OcaMediaClockType Type Type of clock. This property has id ``3.1``. .. _ocamediaclock_domainid: .. cpp:member:: OcaUint16 DomainID Clock domain ID. Arbitrary value. This property has id ``3.2``. .. _ocamediaclock_ratessupported: .. cpp:member:: OcaList RatesSupported List of supported rates This property has id ``3.3``. .. _ocamediaclock_currentrate: .. cpp:member:: OcaMediaClockRate CurrentRate Current clock rate This property has id ``3.4``. .. _ocamediaclock_lockstate: .. cpp:member:: OcaMediaClockLockState LockState Lock state of clock. This property has id ``3.5``. Properties inherited from :ref:`OcaAgent `: - :cpp:texpr:`OcaString` :ref:`OcaAgent::Label ` - :cpp:texpr:`OcaONo` :ref:`OcaAgent::Owner ` Properties inherited from :ref:`OcaRoot `: - :cpp:texpr:`OcaONo` :ref:`OcaRoot::ObjectNumber ` - :cpp:texpr:`OcaBoolean` :ref:`OcaRoot::Lockable ` - :cpp:texpr:`OcaString` :ref:`OcaRoot::Role ` **Methods**: .. _ocamediaclock_gettype: .. cpp:function:: OcaStatus GetType(OcaMediaClockType &Type) Gets the value of the **Type** property. The return value indicates whether the value was successfully retrieved. This method has id ``3.1``. :param OcaMediaClockType Type: Output parameter. .. _ocamediaclock_settype: .. cpp:function:: OcaStatus SetType(OcaMediaClockType Type) Sets the value of the **Type** property. The return value indicates whether the value was successfully set. Optional method, may not be supported in all implementations. This method has id ``3.2``. :param OcaMediaClockType Type: Input parameter. .. _ocamediaclock_getdomainid: .. cpp:function:: OcaStatus GetDomainID(OcaUint16 &ID) Gets the value of the **DomainID** property. The return value indicates whether the value was successfully retrieved. This method has id ``3.3``. :param OcaUint16 ID: Output parameter. .. _ocamediaclock_setdomainid: .. cpp:function:: OcaStatus SetDomainID(OcaUint16 ID) Sets the value of the **DomainID** property. The return value indicates whether the value was successfully set. Optional method, may not be supported in all implementations. This method has id ``3.4``. :param OcaUint16 ID: Input parameter. .. _ocamediaclock_getsupportedrates: .. cpp:function:: OcaStatus GetSupportedRates(OcaList &ID) Gets the list of supported sampling rates. The return value indicates whether the list was successfully retrieved. This method has id ``3.5``. :param OcaList ID: Output parameter. .. _ocamediaclock_getcurrentrate: .. cpp:function:: OcaStatus GetCurrentRate(OcaMediaClockRate &rate) Gets the current sampling rate. The return value indicates whether the value was successfully retrieved. This method has id ``3.6``. :param OcaMediaClockRate rate: Output parameter. .. _ocamediaclock_setcurrentrate: .. cpp:function:: OcaStatus SetCurrentRate(OcaMediaClockRate rate) Sets the sampling rate. The return value indicates whether the rate was successfully set. This method has id ``3.7``. :param OcaMediaClockRate rate: Input parameter. .. _ocamediaclock_getlockstate: .. cpp:function:: OcaStatus GetLockState(OcaMediaClockLockState &state) Gets the current media clock lock state. The return value indicates whether the value was successfully retrieved. This method has id ``3.8``. :param OcaMediaClockLockState state: Output parameter. Methods inherited from :ref:`OcaAgent `: - :ref:`OcaAgent::GetLabel(Label) ` - :ref:`OcaAgent::SetLabel(Label) ` - :ref:`OcaAgent::GetOwner(owner) ` - :ref:`OcaAgent::GetPath(NamePath, ONoPath) ` Methods inherited from :ref:`OcaRoot `: - :ref:`OcaRoot::GetClassIdentification(ClassIdentification) ` - :ref:`OcaRoot::GetLockable(lockable) ` - :ref:`OcaRoot::LockTotal() ` - :ref:`OcaRoot::Unlock() ` - :ref:`OcaRoot::GetRole(Role) ` - :ref:`OcaRoot::LockReadonly() `